# _*_ coding:utf-8 _*_

#@Time :2021/3/21 

# @Author : litao

# @File : StartCloudFactoryCalServer.py
import os
from utils.LoggerUtil import LoggerUtil, InitLog, logger
from conf import config as conf

class CloudFtyCalServer:
    @staticmethod
    def closeserver():
        '''
         关闭服务
        :return:
        '''
        logger.info('----------【关闭服务】-------------')
    @staticmethod
    def startserver():
        '''
        开启服务
        :return:
        '''
        logger.info('----------【开启服务】-------------')
        os.system('startservice.bat')
if __name__ == '__main__':
    InitLog(conf.log_path)
    filepath = 'C:/Users/Administrator/Downloads/UpdatePath/QDLocalBomApi.dll'
    logger.info('filepath={}'.format(filepath))
    if os.path.exists(filepath):
        #关闭服务

        #替换dll文件
        #启动服务
    else:
        #关闭服务
        #启动服务